package org.andes.kownledge.operator.func;

public class TimeIntervalp extends Func{
	public TimeIntervalp(){
		System.out.println("TimeIntervalp new");
	}

//	(defun time-intervalp (x)
//			   "Return the argument if it is a time interval and NIL otherwise"
//			   (when (and (consp x) (equal (car x) 'during))
//			      (if (not (and (time-pointp (second x))
//			                    (time-pointp (third x))
//			                    (< (second x) (third x)) 
//			                    (null (cdddr x))))
//			         (error "~a has illegal time interval syntax." x))
//			      x))
	@Override
	public Object doFunc() {
		if(!(vars.get(0) instanceof During))
			return null;
		else 
			return new Boolean(true);
	}

}
